package ru.amse.podolsky.fractalarch.io;

/**
 * @author Алексей
 */

import java.io.*;

public class FilesIO {

    public static void SaveFile(String pathIn, String pathOut) throws IOException{
        FileOutputStream outputImg = new FileOutputStream(pathOut);
        FileInputStream inputImg = new FileInputStream(pathIn);
        byte data = (byte) inputImg.read();
        while(data != -1){
            outputImg.write(data);
            data = (byte) inputImg.read();
        }
        inputImg.close();
        outputImg.close();
    }
}
